package com.yaolong.configuration;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @program: yaolong-blog
 * @description: mybatis分页插件配置
 * @author: yaolong
 * @create: 2020-08-09 16:56
 **/
@Configuration
public class MybatisPageHelperConfiguration {

	/**
	 * MyBatis Plus 分页插件
	 * @return {@link PaginationInterceptor}
	 */
	@Bean
	public PaginationInterceptor paginationInterceptor() {
		return new PaginationInterceptor();
	}

}
